export const getMinHeightColumnIndex = (
  columnHeights: Record<string, number>
) => {
  const minHeight = getMinHeight(columnHeights);

  return (
    Object.keys(columnHeights).find(key => columnHeights[key] === minHeight) ||
    0
  );
};

export const getMinHeight = (columnHeights: Record<string, number>) => {
  return Math.min(...Object.values(columnHeights));
};

export const getMaxHeight = (columnHeights: Record<string, number>) => {
  return Math.max(...Object.values(columnHeights));
};
